package com.fldx.baseboot.base;

import com.fldx.baseboot.common.utils.spring.SpringUtils;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.List;

@NoRepositoryBean
public interface BaseDao<T,ID> extends JpaRepository<T,ID>{
    SqlSessionTemplate instance = SpringUtils.getBean(SqlSessionTemplate.class);
}
